Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 4 |
Changes | 0 |
1 | import serversService from '../../servers/services/ServersService'; |
||
11 | export default function reducer(state = defaultState, action) { |
||
12 | 3 | switch (action.type) { |
|
13 | case SELECT_SERVER: |
||
14 | 1 | return action.selectedServer; |
|
15 | case RESET_SELECTED_SERVER: |
||
16 | 1 | return defaultState; |
|
17 | default: |
||
18 | 1 | return state; |
|
19 | } |
||
20 | } |
||
21 | |||
36 |